'use strict'

const Koa = require('koa')
const path = require('path')
const app = new Koa()
const wechat = require('./wechat/g')
const util = require('./libs/util')
const config = require('./config')
const weixin = require('./weixin')
const wechat_file = path.join(__dirname, './config/wechat.txt')


app.use(wechat(config.wechat, weixin.reply))

app.listen(3000, err => {
    if (err) return console.log('启动失败')
    console.log('启动成功')
})